Conversation
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Signed-off-by: HDzungx <hdzungx@gmail.com>
This is a squash of the following changes:
Author: Danesh Mondegarian <daneshm90@gmail.com>
Date: Sun Nov 10 23:30:56 2013 -0800
SystemUI : Port forward statusbar brightness control
Brings back the status bar brightness control from cm-10.2/cm-11
Change-Id: Icc04e7da3286e9925f8b90528c1e022b33d33e9d
Author: Roman Birg <roman@cyngn.com>
Date: Mon Dec 1 16:08:21 2014 -0800
SystemUI: improve brightness slider behavior
Mimic the brightness slider behavior in the statusbar.
This adds logic to make the statusbar slider also work with automatic
brightness mode enabled and it will instead adjust the temporary automatic
brightness overrride.
Change-Id: I78814a785decc83df94844fcc2f489c8cbec2b65
Signed-off-by: Roman Birg <roman@cyngn.com>
Author: Pawit Pornkitprasan <p.pawit@gmail.com>
Date: Sun Dec 28 20:42:41 2014 +0700
SystemUI: status bar brightness: store value as int
Non-automatic brightness value is stored as int, not float.
Symptom: adjust the brightness in the status bar, the brightness
slider in the notification bar will always be set to full
Change-Id: I5f9a6e97bae2c44c3aff7c9222186a6dbda5d902
Author: Zhao Wei Liew <zhaoweiliew@gmail.com>
Date: Fri Oct 7 10:09:04 2016 +0800
SystemUI: statusbar: Fix status bar brightness control feature
Bring in the missing fixes from CM 13.
This commit squashes the following commits from CM 13.0:
6397527ca0c430671503cecb69d74554dea1d399 SystemUI: fix status bar brightness slider eating events
bbef42271cbba0eda91d214186ff2be31eb3b608 SystemUI : fix brightness slider for automatic brightness
Change-Id: I85e0b99dc33468b36222128660707fe481cf8b33
Author: Zhao Wei Liew <zhaoweiliew@gmail.com>
Date: Fri Oct 7 08:56:25 2016 +0800
SystemUI: Use Tuner API for CM settings
Get rid of all the excess code by implementing TunerService.Tunable
and observing any changes made to the settings through it.
Remove UserContentObserver as the Tuner API handles user switches.
Also remove some unused imports that were introduced in earlier
CM commits, but were never removed since.
Change-Id: Iecafafabdaec82b3b3c72293bea865de48f0e90a
Author: Chenyang Zhong <zhongcy95@gmail.com>
Date: Sat, 13 Mar 2021 07:36:30 -0500
SystemUI: migrate statusbar manual brightness to float
Google switched to float in BrightnessController after android11,
so stay inline with that behavior. Besides, the brightness slider
is in log scale since pie, and a gamma-to-linear conversion is
performed when setting the value to DisplayManager. Therefore, use
the newly introduced float conversion here to achieve a perception
of linear brightness transitions to human eyes.
Change-Id: I70d5e33b9464c73a25f73a1d9fc690c101b1fa05
Author: Chenyang Zhong <zhongcy95@gmail.com>
Date: Sun, 21 Mar 2021 23:16:10 -0400
SystemUI: unify statusbar manual & auto brightness code
setTemporaryBrightness(float) can be used in both manual and auto
brightness mode. This stays inline with current android11's
BrightnessController and avoids incorrect behaviors when sliding
statusbar in auto brightness mode.
Change-Id: I0e7d7d0ccd871c61d062d6a190e5a61287687e80
Author: jhenrique09 <jhsv09@gmail.com>
Date: Sat, 14 May 2022 22:51:51 +0000
Call setBrightness when user stops swiping on statusbar
This way brightness gets saved and changes are shown on quick settings brightness bar
Change-Id: I5daf99d7c2c1bebf430902bdbfad9971142be93b
idoybh:
* Properly mention co-authors
cjh1249131356
* Port to QPR2
neobuddy89
* Port to A14 QPR1, A15
* Rewrite interface implementation
Change-Id: Ic8ded146dc8605e6140f4352cafa6f961ad3decc
Co-authored-by: Danesh Mondegarian <daneshm90@gmail.com>
Co-authored-by: Roman Birg <roman@cyngn.com>
Co-authored-by: Pawit Pornkitprasan <p.pawit@gmail.com>
Co-authored-by: Zhao Wei Liew <zhaoweiliew@gmail.com>
Co-authored-by: Chenyang Zhong <zhongcy95@gmail.com>
Co-authored-by: jhenrique09 <jhsv09@gmail.com>
Co-authored-by: cjh1249131356 <cjh1249131356@gmail.com>
Co-authored-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: cjh1249131356 <cjh1249131356@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: HDzungx <hdzungx@gmail.com>
Fixes: crdroidandroid/issue_tracker#910 Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Signed-off-by: HDzungx <hdzungx@gmail.com>
Currently, the texture soft ticks will play only if there's a hardware-specific implementation. So, there may be no haptic feedback at all in actions called repeatedly (e.g., when dragging a slider thumb or when performing a back gesture). This is the case for most older devices, see [1]. This CL allows to configure the wave timings via overlay to replicate the texture tick effect implementation. The start & end time values may need to be tuned, so it's not too disruptive to the user. NOTE: when set, this will ignore the hardware-specific implementation, if any (assuming none). Signed-off-by: iusmac <iusico.maxim@libero.it> Signed-off-by: HDzungx <hdzungx@gmail.com>
Change-Id: Ibb8406b95bdd87a1e2c3adcc3b8292bd3ef99d85 Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Signed-off-by: Ghosuto <clash.raja10@gmail.com> Signed-off-by: HDzungx <hdzungx@gmail.com>
Guard against NullPointerException when mParams is null during setStopReason() call, which causes system_server to crash. Fix: 503115487 Test: run MTBF test and no crash Change-Id: I987a6d4b123a1956dd8a7a04b28982f5f3bc5b50 Signed-off-by: chaihua1 <chaihua1@xiaomi.corp-partner.google.com> Signed-off-by: HDzungx <hdzungx@gmail.com>
-The test turns off accessibility before the UI has finished closing. Jetpack Compose tries to send a delayed accessibility event to a service that is already dead, causing a crash. -Waiting for the UI to idle forces the test to pause until the UI is completely gone before turning off accessibility. Test: Running the test with the fix 200 times using go/abtd. Bug: 504933143 Change-Id: I0005a54057c6d085219f7b9a473089114aa92aac Signed-off-by: HDzungx <hdzungx@gmail.com>
Move the `ensureDataForAutofill` operation outside the lock to avoid prolonged lock holds caused by non-one-way methods. Test: atest Bug: 502141486 Change-Id: Ic1ccfd11587f2ac9a9fd3d5ed776562b124e64f6 Signed-off-by: luanzhuang <luanzhuang@xiaomi.corp-partner.google.com> Signed-off-by: HDzungx <hdzungx@gmail.com>
…an SIGKILL Zygote/system_server. ActivityManagerService.appDiedLocked() calls killProcessQuiet(pid) to clean up a process that AMS believes has died. Between AMS detecting the death (via Binder) and actually issuing the kill, there is a window in which the kernel can free and reuse the original PID. When kill(pid, SIGKILL) is finally issued, the signal lands on whatever currently owns that PID — often a thread of Zygote or system_server — causing the wrong process to die. For details on the reason for the change, please refer to the issue. Test: atest Bug: 513038379 Change-Id: Ic242cb2616fed0f865be6a8b650b49a58fa90de1 Signed-off-by: luanzhuang <luanzhuang@xiaomi.corp-partner.google.com> Signed-off-by: HDzungx <hdzungx@gmail.com>
Signed-off-by: Ghosuto <clash.raja10@gmail.com> Signed-off-by: HDzungx <hdzungx@gmail.com>
Signed-off-by: Ghosuto <clash.raja10@gmail.com> Signed-off-by: HDzungx <hdzungx@gmail.com>
Bug: 337070728 Change-Id: I63707b4f9fe3bcd705e98ac2e69a5101d092de76 Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Signed-off-by: HDzungx <hdzungx@gmail.com>
Test: Cts Verifier: Sharesheet component. Google: 3584832 Change-Id: I05bc3929df050dd19a28f672c59b08ac76e25eb1 Signed-off-by: HDzungx <hdzungx@gmail.com>
TTS Engine crash many times continuously. Then onServiceDisconnected will reentry, lead to NPE in TextToSpeechManagerPerUserService Google: 2864431 Change-Id: I34c55dec87573e5d82cccbbbdc29b7d93cbad5b1 Signed-off-by: HDzungx <hdzungx@gmail.com>
* Some google apps are not shipped/installed. It's okay. We do not need scary log like below. Log: 04-13 16:08:14.518 12685 12685 W CarrierAppUtils: Could not reach PackageManager 04-13 16:08:14.518 12685 12685 W CarrierAppUtils: android.content.pm.PackageManager$NameNotFoundException: com.google.android.apps.tycho 04-13 16:08:14.518 12685 12685 W CarrierAppUtils: at android.app.ApplicationPackageManager.getApplicationInfoAsUser(ApplicationPackageManager.java:541) 04-13 16:08:14.518 12685 12685 W CarrierAppUtils: at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:524) 04-13 16:08:14.518 12685 12685 W CarrierAppUtils: at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:518) 04-13 16:08:14.518 12685 12685 W CarrierAppUtils: at com.android.internal.telephony.CarrierAppUtils.getApplicationInfoIfSystemApp(CarrierAppUtils.java:449) 04-13 16:08:14.518 12685 12685 W CarrierAppUtils: at com.android.internal.telephony.CarrierAppUtils.getDefaultCarrierAppCandidatesHelper(CarrierAppUtils.java:407) 04-13 16:08:14.518 12685 12685 W CarrierAppUtils: at com.android.internal.telephony.CarrierAppUtils.disableCarrierAppsUntilPrivileged(CarrierAppUtils.java:147) 04-13 16:08:14.518 12685 12685 W CarrierAppUtils: at com.android.internal.telephony.CarrierAppUtils.disableCarrierAppsUntilPrivileged(CarrierAppUtils.java:90) 04-13 16:08:14.518 12685 12685 W CarrierAppUtils: at com.android.internal.telephony.GsmCdmaPhone.initializeCarrierApps(GsmCdmaPhone.java:669) 04-13 16:08:14.518 12685 12685 W CarrierAppUtils: at com.android.internal.telephony.GsmCdmaPhone.initOnce(GsmCdmaPhone.java:573) 04-13 16:08:14.518 12685 12685 W CarrierAppUtils: at com.android.internal.telephony.GsmCdmaPhone.<init>(GsmCdmaPhone.java:357) 04-13 16:08:14.518 12685 12685 W CarrierAppUtils: at com.android.internal.telephony.GsmCdmaPhone.<init>(GsmCdmaPhone.java:339) 04-13 16:08:14.518 12685 12685 W CarrierAppUtils: at com.android.internal.telephony.GsmCdmaPhone.<init>(GsmCdmaPhone.java:331) 04-13 16:08:14.518 12685 12685 W CarrierAppUtils: at com.android.internal.telephony.TelephonyComponentFactory.makePhone(TelephonyComponentFactory.java:505) 04-13 16:08:14.518 12685 12685 W CarrierAppUtils: at com.android.internal.telephony.PhoneFactory.createPhone(PhoneFactory.java:356) 04-13 16:08:14.518 12685 12685 W CarrierAppUtils: at com.android.internal.telephony.PhoneFactory.makeDefaultPhone(PhoneFactory.java:226) 04-13 16:08:14.518 12685 12685 W CarrierAppUtils: at com.android.internal.telephony.PhoneFactory.makeDefaultPhones(PhoneFactory.java:122) 04-13 16:08:14.518 12685 12685 W CarrierAppUtils: at com.android.phone.PhoneGlobals.onCreate(PhoneGlobals.java:565) 04-13 16:08:14.518 12685 12685 W CarrierAppUtils: at com.android.phone.PhoneApp.onCreate(PhoneApp.java:39) 04-13 16:08:14.518 12685 12685 W CarrierAppUtils: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1395) 04-13 16:08:14.518 12685 12685 W CarrierAppUtils: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7698) 04-13 16:08:14.518 12685 12685 W CarrierAppUtils: at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0) 04-13 16:08:14.518 12685 12685 W CarrierAppUtils: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2500) 04-13 16:08:14.518 12685 12685 W CarrierAppUtils: at android.os.Handler.dispatchMessage(Handler.java:109) 04-13 16:08:14.518 12685 12685 W CarrierAppUtils: at android.os.Looper.loopOnce(Looper.java:232) 04-13 16:08:14.518 12685 12685 W CarrierAppUtils: at android.os.Looper.loop(Looper.java:317) 04-13 16:08:14.518 12685 12685 W CarrierAppUtils: at android.app.ActivityThread.main(ActivityThread.java:8934) 04-13 16:08:14.518 12685 12685 W CarrierAppUtils: at java.lang.reflect.Method.invoke(Native Method) 04-13 16:08:14.518 12685 12685 W CarrierAppUtils: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:594) 04-13 16:08:14.518 12685 12685 W CarrierAppUtils: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911) 04-13 16:08:14.518 12685 12685 D GsmCdmaPhone: [0] Precise phone type 1 04-13 16:08:14.519 12685 12685 D RILJ : setPhoneType=1 old value=0 [PHONE0] Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Signed-off-by: HDzungx <hdzungx@gmail.com>
Caused by: java.lang.IndexOutOfBoundsException E AndroidRuntime: at android.content.res.StringBlock.nativeGetString(Native Method) E AndroidRuntime: at android.content.res.StringBlock.getSequence(StringBlock.java:124) E AndroidRuntime: at android.content.res.ApkAssets.getStringFromPool(ApkAssets.java:351) E AndroidRuntime: at android.content.res.AssetManager.getPooledStringForCookie(AssetManager.java:869) Change-Id: I539754f774c63bbccefcf75992d7ad2988359f14 Signed-off-by: minaripenguin <minaripenguin@users.noreply.github.com> Signed-off-by: HDzungx <hdzungx@gmail.com>
Change-Id: Ifa087cd09020159e4b559f35dd22091f92400f6a Signed-off-by: rmp22 <195054967+rmp22@users.noreply.github.com> Signed-off-by: HDzungx <hdzungx@gmail.com>
When opening and closing activities in Settings, a measurably
significant amount of CPU time is spent writing to the EventLog, as
reported by simpleperf:
0.01% /system/lib64/libandroid_runtime.so android::EventLogHelper<(log_id)2, &(android::kEventLogEventClass)>::writeEventArray(_JNIEnv*, _jobject*, int, _jobjectArray*)
We have no use for EventLog events in production builds, so disable
event writing entirely on non-debuggable builds.
To avoid having to check ro.debuggable in native code and pay the
overhead of a JNI call for every event, perform checks on the Java side
and make the native method implementations private for delegation.
Test: simpleperf record -a; verify that EventLogHelper no longer
appears in sample hits
Change-Id: I3505c460f234d9a5038bd1f9d41ce911697ca76e
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: HDzungx <hdzungx@gmail.com>
Change-Id: I60281cff944e1ff91c7d194d35df247c1ac4a41b Signed-off-by: rmp22 <195054967+rmp22@users.noreply.github.com> Signed-off-by: HDzungx <hdzungx@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Signed-off-by: HDzungx <hdzungx@gmail.com>
I don't wanna record a single app and it's so annoying to open the dropdown menu Every. Single. Time. Change-Id: Idef4ec7a7ea76d3fb648dbc4089a9141439bfa2e Signed-off-by: HDzungx <hdzungx@gmail.com>
Change-Id: Ib449fe5f32945fb7749fc00865c4743fd4fe5a07 Signed-off-by: Ghosuto <clash.raja10@gmail.com> Signed-off-by: HDzungx <hdzungx@gmail.com>
Change-Id: Iae11bbeeab998a471017008af25d543e32b65f4b Signed-off-by: Ghosuto <clash.raja10@gmail.com> Signed-off-by: HDzungx <hdzungx@gmail.com>
Change-Id: I4175e5bc550eded51be1f3608dfa233d576570ef Signed-off-by: HDzungx <hdzungx@gmail.com>
Change-Id: I48bb4f0ab2529f731236dbacad81efbfe06ab967 Signed-off-by: SagarMakhar <sagarmakhar@gmail.com> Signed-off-by: HDzungx <hdzungx@gmail.com>
reference: 2de4846 Change-Id: If1cddde0ad4437587345c591b355eb59d47a093e Signed-off-by: minaripenguin <minaripenguin@users.noreply.github.com> Signed-off-by: HDzungx <hdzungx@gmail.com>
…o debug Signed-off-by: NurKeinNeid <nurkeinneid@derpfest.org> Signed-off-by: HDzungx <hdzungx@gmail.com>
09-22 19:49:33.319 2578 2578 I SceneTransitionLayoutState: startTransition(transition=ChangeScene(fromScene=SceneKey(debugName=QuickQuickSettingsScene), toScene=SceneKey(debugName=QuickSettingsScene)), chain=true) 09-22 19:49:33.713 2578 2578 I SceneTransitionLayoutState: finishTransition(transition=ChangeScene(fromScene=SceneKey(debugName=QuickQuickSettingsScene), toScene=SceneKey(debugName=QuickSettingsScene))) 09-22 19:49:33.713 2578 2578 I SceneTransitionLayoutState: all transitions finished. idle=Idle(currentScene=SceneKey(debugName=QuickQuickSettingsScene), currentOverlays=[]) Signed-off-by: Dmitrii <bankersenator@gmail.com> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com> Signed-off-by: HDzungx <hdzungx@gmail.com>
Signed-off-by: Dmitrii <bankersenator@gmail.com> Signed-off-by: HDzungx <hdzungx@gmail.com>
Signed-off-by: Dmitrii <bankersenator@gmail.com> Signed-off-by: HDzungx <hdzungx@gmail.com>
51a87c6 to
54ea2e3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.